﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DXTools.UI.Core.ViewModel;

namespace DXTools.UI.Core.View
{
    public class ViewBase : UserControl, IViewBase
    {
        public ViewBase()
        {
 
        }

        public ViewBase(ViewModelBase viewModel)
        {
            this.DataContext = viewModel;
            viewModel.View = this;
        }

        public void ShowMessage(string message)
        {
             MessageBox.Show(message);
        }

        public void ShowMessage(string message, string caption, MessageBoxButton boxButton)
        {
            MessageBox.Show(message, caption, boxButton);
        }
 
    }
}
